﻿<?xml version="1.0" encoding="UTF-8"?>
<!--RSS generated by Windows SharePoint Services V3 RSS Generator on 6/09/2010 6:23:32 PM-->
<?xml-stylesheet type="text/xsl" href="/_layouts/RssXslt.aspx?List=2ff3c115-1800-4d20-992d-b48842982db3" version="1.0"?>
<rss version="2.0">
  <channel>
    <title>livePoint Blogs: Posts</title>
    <link>http://blogs.livepoint.com.au/Lists/Posts/AllPosts.aspx</link>
    <description>RSS feed for the Posts list.</description>
    <lastBuildDate>Tue, 07 Sep 2010 01:23:32 GMT</lastBuildDate>
    <generator>Windows SharePoint Services V3 RSS Generator</generator>
    <ttl>60</ttl>
    <image>
      <title>livePoint Blogs: Posts</title>
      <url>/_layouts/images/homepage.gif</url>
      <link>http://blogs.livepoint.com.au/Lists/Posts/AllPosts.aspx</link>
    </image>
    <item>
      <title>Find out if a SharePoint Publishing page is checked out in code</title>
      <link>http://blogs.livepoint.com.au/Lists/Posts/ViewPost.aspx?ID=32</link>
      <description><![CDATA[<div><b>Body:</b> <div class=ExternalClassB18D8AFD50A6467092BEAF2D66B768E0><p>I recently had to write code to check if a page in the page library was already checked out, so that I can force the check in and publish it with comments.</p> <p>The one that was hard to find was how to inspect in which state the page was in (checked out, published, draft, etc).</p> <p>In the end, looking through the object model and after a while I found this pearl in the file object</p><font size=2> <blockquote> <p>pubPage.ListItem.File.Level == </font><font color="#2b91af" size=2><font color="#2b91af" size=2>SPFileLevel</font></font><font size=2>.Checkout</p></blockquote></font> <p>The possible values for this Level object are</p> <blockquote> <p>SPFIleLevel.Checkout</p></blockquote> <blockquote> <p>SPFileLevel.Draft</p></blockquote> <blockquote> <p>SPFileLevel.Published</p></blockquote> <p>Hope this helps someone</p> <p>Other Tags: Find out if SharePoint item is checked out; isCheckedOut;</p></div></div>
<div><b>Published:</b> 3/03/2010 4:58 PM</div>
]]></description>
      <author>Sergio Otoya</author>
      <pubDate>Wed, 03 Mar 2010 05:58:55 GMT</pubDate>
      <guid isPermaLink="true">http://blogs.livepoint.com.au/Lists/Posts/ViewPost.aspx?ID=32</guid>
    </item>
  </channel>
</rss>